package com.example.comsys.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDate;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 考勤记录汇总（生成折线图使用）
 *
 * @author wjh
 * @date 2020/1/28, 周二
 */
@Getter
@Setter
@NoArgsConstructor
public class AttendDepartSummary {

  private long departId;

  /**
   * 考勤日期
   */
  @JsonFormat(pattern = "yyyy-MM-dd")
  private LocalDate date;

  private int lateIn030;
  private int lateG30;
  private int earlyIn030;
  private int earlyG30;
  private int illAbsence;
  private int thingAbsence;
  private int pubHoliday;

  public AttendDepartSummary(long departId) {
    this.departId = departId;
  }
}
